/*
 * Author: vyouzhi <vyouzhi@163.com>
 * http://www.xda.cn
 *
 * File: mem_lib.c
 * Create Date: 2011-07-18 17:14:27
 *
 */
#include <stdlib.h>
#include <malloc.h>
#include <stdio.h>

void *SQLMallocEx(size_t size, const char *caller, const char *fileName, int lineNo){
	printf("----one malloc start ---\n");
	printf("function is %s, file is %s, and line in %d\n", caller, fileName, lineNo);
	printf("--- one malloc end ----\n");
	return malloc(size);
}
void *SQLCallocEx(size_t nmemb, size_t size, const char *caller, const char *fileName, int lineNo);
void *SQLReallocEx(void *ptr, size_t size, const char *caller, const char *fileName, int lineNo);
void SQLFreeEx(void *ptr, const char *caller, const char *fileName, int lineNo){
	printf("----one malloc start ---\n");
	printf("function is %s, file is %s, and line in %d\n", caller, fileName, lineNo);
	printf("--- one malloc end ----\n");

	free(ptr);
}


/* vim: set ts=4 sw=4: */
